package gui;

import javax.swing.JLabel;

@SuppressWarnings("serial")
public class ModifierLabel extends JLabel {
    
    public int stat;
    
    public ModifierLabel(int stat) {
	this.stat = stat;
    }
    
    public void calculateModifier(int statLevel) {
	setText("" + (int)(Math.floor(((double)statLevel-10) / 2)));
    }
}
